﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2023-03-25 18:51
    /// 描 述：入群配置实体类
    /// </summary>
    [Table("group_chat_join_way")]
    public class GroupChatJoinWayEntity : BaseEntity
    {
        /// <summary>
        /// 场景1 - 群的小程序插件2 - 群的二维码插件
        /// </summary>
        /// <returns></returns>
        public int? scene { get; set; }
        /// <summary>
        /// 客户群ID
        /// </summary>
        /// <returns></returns>
        public string chat_id { get; set; }
        /// <summary>
        /// 当群满了后，是否自动新建群。0-否；1-是。 默认为1
        /// </summary>
        /// <returns></returns>
        public int? auto_create_room { get; set; }

        [NotMapped]
        public string state { get; set; }

        /// <summary>
        /// 自动建群的群名前缀
        /// </summary>
        /// <returns></returns>
        public string room_base_name { get; set; }
        /// <summary>
        /// 自动建群的群起始序号
        /// </summary>
        /// <returns></returns>
        public int? room_base_id { get; set; }
        /// <summary>
        /// 联系方式的备注信息
        /// </summary>
        /// <returns></returns>
        public string remark { get; set; }
        /// <summary>
        /// 配置id
        /// </summary>
        /// <returns></returns>
        public string config_id { get; set; }
        /// <summary>
        /// 图片或者二维码
        /// </summary>
        /// <returns></returns>
        public string qr_code { get; set; }

        public DateTime lasttime { get; set; }
    }
}
